package com.itheima;


import java.util.Scanner;

public class StringTraval {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("Please input a string :");
        String str = sc.nextLine();

        for(int i = 0; i < str.length();i++){
            System.out.print(str.charAt(i) + " ");   // Object.charAt(index) 方法： 返回索引为 index 处的字符char的值
        }
        System.out.println();
    }
}
